import Vue from 'vue'
import App from './App.vue'
import Router from 'vue-router'

import Index from './components/Index.vue'
import Music from './components/Music.vue'
Vue.use(Router);
const routes = [
  {path: '/', redirect: '/index'},
  {path: '/index', component: Index},
  {path: '/music', component: Music}
]
const router = new Router({routes})
console.log(router);

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
